﻿@using DocProcessingWorkflow.Resources.JobsAdmin
@using DocProcessingWorkflow.Models.JobsAdmin
@model MailSortSettingsViewModel
@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "__AjaxAntiForgeryForm" }))
{
  @Html.AntiForgeryToken()

  <div class="row">
    <div class="col-md-12">
      <h2>@MailSortSettings.PageTitle.ToUpper()
        <span class="nav pull-right">
          @Html.ActionLink("Jobs Admin", "Index")
        </span>
      </h2>
    </div>
  </div>
  <div id="Message">
    @TempData["message"]
  </div>
  <table class="table">
    <thead>
      <tr>
        <th class="text-center">@MailSortSettings.TNTDepot</th>
        <th class="text-center">@MailSortSettings.TNTMailingHouse</th>
        <th class="text-center">@MailSortSettings.TNTClientCode</th>
        <th class="text-center">@MailSortSettings.TNTJobReference</th>
        <th class="text-center">@MailSortSettings.NexdoxMailsortService</th>
        <th class="text-center">@MailSortSettings.LargeLetter</th>
        <th class="text-center">@MailSortSettings.FixedWeight</th>
      </tr>
    </thead>
    <tbody>
      @foreach (var mailSortSetting in @Model.MailSortSettings)
      {
        <tr>
          <td class="text-center">@mailSortSetting.TNTDepot</td>
          <td class="text-center">@mailSortSetting.TNTMailingHouse</td>
          <td class="text-center">@mailSortSetting.TNTClientCode</td>
          <td class="text-center">@mailSortSetting.TNTJobReference</td>
          <td class="text-center">@mailSortSetting.NexdoxMailsortService</td>
          <td class="text-center">@mailSortSetting.Largeletter</td>
          <td class="text-center">@mailSortSetting.FixedWeight_NoOuter</td>
        </tr>
      }
    </tbody>
  </table>
  @Html.ActionLink(MailSortSettings.Create, "AddMailSortSetting", null, new { @class = "btn btn-page pull-right" })
}